package cn.yqn.pet.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.yqn.basic.domain.BaseDomain;
import cn.yqn.org.domain.Shop;
import cn.yqn.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yqn
 * @since 2022-08-06
 */
@Data
public class Pet extends BaseDomain{

    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;
    /**
     * 类型id
     */
    private Long type_id;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Integer state = 0;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createtime = new Date();
    /**
     * 店铺_id 如果被领养店铺id为null
     */
    private Long shop_id;
    /**
     * 如果被领养为领养用户id
     */
    private Long user_id;
    private Long searchMasterMsg_id;
    private PetType type;
    private Shop shop;
    private User user;

    private Long search_master_msg_id;

    // 详情对象，接收前端的数据以及回显
    private PetDetail petDetail;


}
